import { defineStore } from 'pinia'
import { articleType } from '../types'
export const useArticleStore = defineStore({
    id: 'article',
    state() {
        return {
            _id: <string>'',
            articles: <any>[]
        }
    },
    actions: {
        setId(id: string) {
            this._id = id
        },
        setArticles(articles: Array<articleType>): void {
            this.articles = articles
        }
    }
})